package com.hange.usercenter.service;

import com.hange.usercenter.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author banye
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-04-27 14:23:16
*/
public interface UserService extends IService<User> {

    public static final String USER_LOGIN_STATE = "userLoginState";
    /**
     * 用户注册
     *
     * @param userAccount   用户账户
     * @param userPassword  用户密码
     * @param checkPassword 校验密码
     * @return
     */
    long userRegister(String userAccount, String userPassword, String checkPassword, String planetCode);

    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    User getSafetyUser(User originUser);

    int userLogout(HttpServletRequest request);
}
